﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WitsWebApi.Entity.PageHelper
{
    public class Paged<TEntity>
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int CurrentPage { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }

        /// <summary>
        /// 总记录数
        /// </summary>
        public long TotalItems { get; set; }

        /// <summary>
        /// 每页记录数
        /// </summary>
        public int ItemsPerPage { get; set; }

        /// <summary>
        /// 当前页记录列表
        /// </summary>
        public IList<TEntity> Items { get; set; }
    }
}
